.mainBox{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
    overflow-y: scroll;
}
footer{
    height: 50px;
    display: flex;
}
footer input{
    text-indent: 12px;
}
footer button{
    width: 100px;
}
.chatitem{
    width: 100%;
    height: auto;
}
.chat-item-r{
    display: flex;
    margin: 10px 0;
    flex-direction: row-reverse;
}
.chat-item-l{
     display: flex;
    margin: 10px 0;
}
.avatar{
    width: 40px;
    height: 40px;
}

.chat-item-r .avatar{
    margin-right: 20px;
}
.chat-item-l .avatar{
margin-left: 20px;
}
.chat-item-r .text{
    background-color: aqua;
    color: #fff;

}
.chat-item-l .text{
    background-color: rgb(81, 255, 0);
    color: #fff;
    
}